/*******************************************************************
 *
 * Copyright (C), 2021-2022, LS, All rights reserved.
 *
 * Author      : 
 * Create Time : 2020-11-02
 * Version     : v0.1
 * Description : 
 *******************************************************************/
#ifndef _HAL_DISPLAY_H_
#define _HAL_DISPLAY_H_
 
/*----------------------------Head file----------------------------*/
#include "stdint.h"
#include "stdbool.h"
#include "lcd_tm1621c.h"

/*----------------------------macro file---------------------------*/
#define SEGMENT_MAX_NUM		18

/*----------------------------type define--------------------------*/

/*----------------------------var define---------------------------*/

/*-------------------------func declaration------------------------*/
extern bool hal_disp_init_state_get(void);
extern bool hal_disp_backlight_state_get(void);
extern void hal_disp_backlight_set(bool enable);

extern void hal_disp_drv_init(void);
extern void hal_disp_drv_deinit(void);
extern void hal_disp_hw_init(void);
extern void hal_disp_hw_deinit(void);

extern void hal_disp_cmd_init(void);
extern void hal_disp_sleep_enable(void);
extern void hal_disp_write_disp_buffer(const uint8_t *buf, uint16_t len);

/*-----------------------------------------------------------------*/


#endif


